package finalfrontier;

/**Classe de beam
 * @author Nicolas Roy Boourdages
 */

public class BeamHerbivore extends Beam {
    public BeamHerbivore(String string, int i, float[] floats) {
        super(string, i, floats);
    }
    
    public void beamEffect(int i, int j, int q, int w){
        if(WorldMap.isEmpty(i + q, j + w)){
            WorldMap.createHerbivore(i + q, j + w, getRandom().nextDouble() * Constants.minAgeReproductionHerbivore, getRandom().nextDouble() * Constants.maxAge, getRandom().nextLong());
        }
        
    }
}
